package com.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 进货 实体类
 */
public class Inpstock {
    private Integer in_num;

    private String in_id;

    private Integer w_id;

    private String p_id;

    private Integer in_number;
    
    @DateTimeFormat (pattern="yyyy-MM-dd'T'HH:mm")
    private Date in_time;

    private String in_remarks;
    
    //多表数据
    private String w_name;
    private String p_name;
    
    public String getW_name() {
        return w_name;
    }
    
    public void setW_name(String w_name) {
        this.w_name = w_name;
    }
    
    public String getP_name() {
        return p_name;
    }
    
    public void setP_name(String p_name) {
        this.p_name = p_name;
    }
    
    public Integer getIn_num() {
        return in_num;
    }

    public void setIn_num(Integer in_num) {
        this.in_num = in_num;
    }

    public String getIn_id() {
        return in_id;
    }

    public void setIn_id(String in_id) {
        this.in_id = in_id == null ? null : in_id.trim();
    }

    public Integer getW_id() {
        return w_id;
    }

    public void setW_id(Integer w_id) {
        this.w_id = w_id;
    }

    public String getP_id() {
        return p_id;
    }

    public void setP_id(String p_id) {
        this.p_id = p_id == null ? null : p_id.trim();
    }

    public Integer getIn_number() {
        return in_number;
    }

    public void setIn_number(Integer in_number) {
        this.in_number = in_number;
    }
    
    @JsonFormat (pattern="yyyy-MM-dd'T'HH:mm",timezone="GMT-8")
    public Date getIn_time() {
        return in_time;
    }

    public void setIn_time(Date in_time) {
        this.in_time = in_time;
    }

    public String getIn_remarks() {
        return in_remarks;
    }

    public void setIn_remarks(String in_remarks) {
        this.in_remarks = in_remarks == null ? null : in_remarks.trim();
        
    }
    
    @Override
    public String toString() {
        return "Inpstock{" +
                "in_num=" + in_num +
                ", in_id='" + in_id + '\'' +
                ", w_id=" + w_id +
                ", p_id='" + p_id + '\'' +
                ", in_number=" + in_number +
                ", in_time=" + in_time +
                ", in_remarks='" + in_remarks + '\'' +
                ", w_name='" + w_name + '\'' +
                ", p_name='" + p_name + '\'' +
                '}';
    }
}